package com.csdn.leon.dao;

import java.util.List;
import java.util.Map;

import com.csdn.leon.model.BlogModel;
import com.csdn.leon.model.LabelModel;
import com.csdn.leon.model.Person;

import android.content.ContentValues;

public interface BaseDaoInface {
	public boolean addCache(LabelModel item);

	public boolean deleteCache(String whereClause, String[] whereArgs);

	public boolean updateCache(ContentValues values, String whereClause,
			String[] whereArgs);

	public Map<String, String> viewCache(String selection,
			String[] selectionArgs);

	public List<Map<String, String>> listCache(String selection,
			String[] selectionArgs);

	public void clearFeedTable();

	// 插入博主
	public boolean insertHost(Person person);

	// 获取博主列表
	public List<Person> getHostList();

	// 根据名字查询博主
	public boolean queryHost(String name);

	// 删除
	public boolean deleteHost(String whereArgs);

	// 插入博文
	public boolean insertBlog(BlogModel blogModel);

	// 获取博文列表
	public List<BlogModel> getBlogModelList();

	// 根据title查询博文
	public boolean queryBlogModel(String title);

	// 删除博文
	public boolean deleteBlogModel(String whereArgs);
}
